package edu.spec.rxz.week05.class1;

class Dog extends Mammal{
    public String kind;
    public String barkSound;
    public Dog(String xm,String sex,int age,String food,String kind,String barkSound){
        this.xm=xm;
        this.sex=sex;
        this.age=age;
        this.food=food;
        this.barkSound=barkSound;
    }
    public void bark(){
        System.out.println("I am a"+this.kind+",my sound is"+this.barkSound);
    }
    public void find(){
        System.out.println("i am glad to find something for you!");
    }

    public static void main(String[] args){
        Dog jm=new Dog("xh","male",1,"gl","jm","wangwang");

        jm.eat();
        jm.born();
        jm.breed();
        jm.bark();
        jm.find();
    }
}
